from django.urls import path
from  app1 import  views
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
    path('customers/', views.customer_list, name='customer-list'),
    path('customers/<int:pk>/', views.customer_detail, name='customer-detail'),

    path('test/',views.test,name='test'),
    path('postTest/',views.postTest,name='test'),

    path('upload/', views.upload_file, name='upload_file'),
  ]

if settings.DEBUG:  # 仅在开发环境开启
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)